﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dukou.Domain;

namespace Dukou.Dao.Implement
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class EnumerationCategoryDao : NHibernateDao<EnumerationCategory, Int64>, IEnumerationCategoryDao
    {
        public EnumerationCategory FindByName(string name)
        {
            return this.HibernateTemplate.Find<EnumerationCategory>("from EnumerationCategory c where c.Name = ?", name).FirstOrDefault();
        }
    }
}
